package com.js.blog.exception;

import lombok.Data;

/**
 * @author yanglin
 * @create 2024-02-29 16:08 星期四
 * description: 自定义业务异常
 */
@Data
public class BusinessException extends RuntimeException {

    private IErrorCode errorCode;
    
    public BusinessException(IErrorCode errorCode) {
        super(errorCode.getMessage());
        this.errorCode = errorCode;
    }
    
}
